
package combat.dudes.operator;

/**
 * <strong>The operator application of the D.U.D.E.S. Combat project</strong><br />
 * This application is used to control and configure the CMS Server (see combat.dudes.server.ServerApp.java).
 * @author Erik Meijer
 * @version 1.0
 */


public class OperatorApp {

	static boolean isConnected = false;
	static boolean isRunning = true;

	public static void main(String[] args) throws Exception {

		System.out.println("This is the operator console. \nPlease enter IP address.\nOr type \"local\" to connect via localhost");

		while(isRunning && !isConnected) {
			Core.connect();
		}
		while(isRunning && isConnected) {
			OperatorCommands.handleInput();
		}
	}
}
